package com.demo.webapp.context;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.DefaultActionProxy;

import org.apache.commons.lang3.StringEscapeUtils;

public class ProxyActionProxy extends DefaultActionProxy {

    private static final long serialVersionUID = 3293074152487468527L;

    /**
     * This constructor is private so the builder methods (create*) should be used to create an DefaultActionProxy.
     * <p/>
     * The reason for the builder methods is so that you can use a subclass to create your own DefaultActionProxy instance
     * (like a RMIActionProxy).
     */
    public ProxyActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, boolean executeResult, boolean cleanupContext) {

    	super(inv, namespace, actionName, methodName, executeResult, cleanupContext);
        this.invocation = inv;
        this.cleanupContext = cleanupContext;
        this.actionName = StringEscapeUtils.escapeHtml4(actionName);
        this.namespace = namespace;
        this.executeResult = executeResult;
        this.method = StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(methodName));
    }
    
    public void prepare() {
    	super.prepare();
    }
}
